import pandas as pd

df = pd.read_csv("dynamic_normalization/1.csv")

df.drop_duplicates(subset=["caseid"], inplace=True)
df.reset_index(drop=True, inplace=True)
#print(7*(df.shape[0]/10))
train = df.loc[: 7*(df.shape[0]/10), ["caseid"]]
test = df.loc[7*(df.shape[0]/10):, ["caseid"]]

train.to_csv("static/train_case.csv", index=False)
test.to_csv("static/test_case.csv", index=False)

